import { ShaderMaterial, Color, AdditiveBlending } from 'three'
// import fragmentShader from '../shaders/shield/frag.glsl'
// import vertexShader from '../shaders/shield/vert.glsl'
export default class ShieldMaterial {
  constructor() {
    const material = new ShaderMaterial({
      uniforms: {
        uThickness: {
          value: 1,
        },
        uColor: {
          value: new Color(0x336622),
        },
        uNoiseTexture: {
          value: null,
        },
        uTime: {
          value: 0,
        },
      },
      fragmentShader: document.getElementById('fragmentShader').textContent,
      vertexShader: document.getElementById('vertexShader').textContent,
      transparent: true,
      blending: AdditiveBlending,
    })
    return material
  }
}
